package org.example.controller;

import org.example.mapper.AppMapper;
import org.example.pojo.Battle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    private AppMapper appMapper;

    @RequestMapping("test/1")
    public String test1() {
        List<Battle> battleList = appMapper.selectBattles("今晚打老虎");
        System.out.println(battleList);
        return "test success";
    }
}
